package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author HJ
 * @date 2024/1/9 15:03
 */
@NoArgsConstructor
@Data
public class NormProjectStatsPO {

    @JsonProperty("message")
    private String message;
    @JsonProperty("content")
    private ContentDTO content;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("timestamp")
    private String timestamp;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {
        @JsonProperty("data_refresh_at")
        private String dataRefreshAt;
        @JsonProperty("project_stat")
        private List<ProjectStatDTO> projectStat;

        @NoArgsConstructor
        @Data
        public static class ProjectStatDTO {
            @JsonProperty("storage_total")
            private Integer storageTotal;
            @JsonProperty("vm_total")
            private Integer vmTotal;
            @JsonProperty("cpu_total")
            private Integer cpuTotal;
            @JsonProperty("project_name")
            private String projectName;
            @JsonProperty("project_id")
            private String projectId;
            @JsonProperty("mem_total")
            private Integer memTotal;
        }
    }
}
